import request from '@/utils/request'

// 查询投资人列表
export function listInvestor(query) {
  return request({
    url: '/system/investor/list',
    method: 'get',
    params: query
  })
}

// 查询投资人列表forAuth
export function listInvestorForAuth(query) {
  return request({
    url: '/system/investor/listForAuth',
    method: 'get',
    params: query
  })
}

// 查询投资人详细
export function getInvestor(id) {
  return request({
    url: '/system/investor/' + id,
    method: 'get'
  })
}

// 新增投资人
export function addInvestor(data) {
  return request({
    url: '/system/investor/adminAdd',
    method: 'post',
    data: data
  })
}

// 修改投资人
export function updateInvestor(data) {
  return request({
    url: '/system/investor/adminMod',
    method: 'put',
    data: data
  })
}

// 审核投资人
export function auditInvestor(data) {
  return request({
    url: '/system/investor/audit',
    method: 'post',
    data: data
  })
}

// 删除投资人
export function delInvestor(id) {
  return request({
    url: '/system/investor/' + id,
    method: 'delete'
  })
}
